# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=enlightenment
pkgver=0.17.0
pkgrel=0
pkgdesc="Enlightenment DR17 Window Manager and Desktop Shell"
url="http://www.enlightenment.org/"
arch="all"
license="BSD"
depends=
depends_dev="
	e_dbus-dev 
	ecore-dev
	edje-dev
	eet-dev
	eeze-dev
	efreet-dev
	eina-dev
	eio-dev
	evas-dev
	"
makedepends="$depends_dev
	alsa-lib-dev
	ethumb-dev
	pm-utils-dev
	udisks2-dev
	xcb-util-keysyms-dev
	paxmark
	"
install=""
subpackages="$pkgname-dev $pkgname-lang"
source="http://download.enlightenment.org/releases/enlightenment-$pkgver.tar.gz"

_builddir="$srcdir"/enlightenment-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	# opengl needs mprotect off for now
	paxmark -m "$pkgdir"/usr/bin/enlightenment
}

md5sums="b2824849c2c56d80fdc11c1f2171d4ec  enlightenment-0.17.0.tar.gz"
